package dao;

import entity.IEntity;
import java.util.List;
import javax.persistence.EntityManager;

/**
 *
 * @author Alexander
 */
public interface IDAO {

    void persist(IEntity entity, EntityManager em);

    IEntity find(Object id, EntityManager em);

    void update(IEntity entity, EntityManager em);

    void delete(Object id, EntityManager em);

    List<IEntity> getList(EntityManager em);
}
